package br.infotec.musicaunb.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import org.hibernate.search.annotations.DocumentId;
import org.springframework.data.jpa.domain.AbstractPersistable;
/**
 * 
 * @author Higor Cesar
 *
 */
@Entity
public class Cordenacao extends AbstractPersistable<Long> implements
		AbstraticPojo {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4187446593548016743L;
	private String nome;
	private Login login;

	@Override
	@Column(name = "id_cordenacao")
	@GeneratedValue
	@DocumentId
	public Long getId() {
		// TODO Auto-generated method stub
		return super.getId();
	}
	
	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}
	
	@ManyToOne
	@JoinColumn(name = "id_login")
	public Login getLogin() {
		return login;
	}

	public void setLogin(Login login) {
		this.login = login;
	}
	
	
}
